//
//  main.m
//  oc_复数的定义
//
//  Created by blue on 16/4/14.
//  Copyright (c) 2016年 csx. All rights reserved.
//
#import "Complex.h"
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        Complex *c1=[[Complex alloc]initWithReal:2 andImaginary:3];//2+3i
        Complex *c2=[[Complex alloc]initWithReal:5 andImaginary:4];//5+4i
        //[c1 addComplex:c2];
        //[c2 addComplex:c1];
        
      Complex *c3=[Complex
            addAComplex:c1
            andBComplex:c2];
        [c3 printComplex];
    }
    return 0;
}
